#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Last modified: 
from mytest.polls.models import Poll,Choice
from django.contrib import admin

""" 模块名
@version: 0.1
@author: ChiBin <ggyqfc@gmail.com>
@license: LGPL
@see:

"""
class ChoiceInLine(admin.StackedInline):
    model = Choice
    extra = 3

class PollAdmin(admin.ModelAdmin):
    fields = ['pub_date', 'question']

admin.site.register(Poll,PollAdmin)
admin.site.register(Choice)
